package com.antball.dd.abserver.alarm;

public class StudentsListener implements BellEventListener {

    @Override
    public void onBellRingsEvent(RingEvent ringEvent) {
        if (ringEvent.getBellTypeEnum() == RingEvent.BellTypeEnum.START) {
            System.out.println("同学们，上课了...");
        } else {
            System.out.println("同学们，下课了...");
        }
    }
}
